package com.tianluo;

import com.alibaba.excel.util.StringUtils;
import com.tianluo.entity.DataBaseInfo;
import com.tianluo.tool.DataBaseUtils;
import com.tianluo.tool.JsonToEntity;

public class Main {
    public static void main(String[] args) {
        DataBaseUtils dataBaseUtils=new DataBaseUtils();
//        dataBaseUtils.exportExcel("/Users/luotian/Downloads/test/test.json");
        String fileName=System.getProperty("jsonKey");
        if(StringUtils.isEmpty(fileName))
        {
            System.out.println("请设置-DjsonKey=json位置");
            return;
        }
        dataBaseUtils.exportExcel(fileName);
    }
}